// Agent complex_userB_Alison in project swatJacamo

/* Initial beliefs and rules */

/* Initial goals */

!do_test.

/* Plans */

+!do_test
	<- 	!discover("a0");
		!use_it(10).
		
+!use_it(NTimes) : NTimes > 0      //atualiza o artefato 10 vezes
	<-	update(3);
		println("[userB] updated.");
		!use_it(NTimes - 1).
		
+!use_it(0)
	<- 	println("[userB] completed.").
	
+!discover(ArtName)
	<- 	lookupArtifact(ArtName,_).    
	
-!discover(ArtName)
	<- 	.wait(10);
		!discover(ArtName).
